package com.nino.dao;

import java.util.List;
import java.util.Map;

import utils.Pagination;
import utils.QueryParam;

public interface BaseDao<T> {
	
	public T get(int id);

	public int save(T bean);
	
	public int update(T bean);
	
	public int remove(int id);

	public List<T> query();
	
	public List<T> query(List<QueryParam> where);
	
	public List<T> query(int orderType , String[] orderName );
	
	public List<T> query(List<QueryParam> where ,int orderType , String[] orderName);
	
	public Pagination queryByPage(int pageNo, int pageSize);
	
	public Pagination queryByPage(int pageNo, int pageSize , List<QueryParam> where);
	
	public Pagination queryByPage(int pageNo, int pageSize , List<QueryParam> where , int orderType ,  String[] orderName);
	
	
}
